using System;
using System.Collections.Generic;
using System.Text;

namespace ca.metaobjects.csogateway.Converters.Interfaces
{
	/// <summary>
	/// Declares methods to create client-side values from server-side objects.
	/// </summary>
	public interface IToClientSideConverter
	{
		/// <summary>
		/// Generates a string of javascript code that, when evaluated, creates a client-side version of the given object.
		/// The generated string is appended in the given <c>StringBuffer</c>.
		/// </summary>
		/// <param name="sourceObject">The object to generate the javascript code for.</param>
		/// <param name="builder">The <c>StringBuilder</c> object to append the generated code to.</param>
		void RenderObjectInstantiation(object sourceObject, StringBuilder builder);
	}
}
